package com.example.ggpicturegg.Mysql_com;

import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

import com.mysql.jdbc.Blob;

import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.Serializable;

public class ImageInfo implements Serializable {
    private int id; // 用户id
    private String picture_name;   //图像
    private String x_title;     // 标题
    private String x_name;    //用户名
    private int x_coutn;   // 点赞数
    private String desc;   //描述

    private Bitmap bitmap;    //根据 picture_name 从 ftp 加载回来的

    public ImageInfo(){
        id = 0;
        picture_name = "";
        x_title = "";
        x_name = "";
        x_coutn = 0;

    }

    public ImageInfo(int id, String picture, String x_title, String x_name, int x_coutn) {
        this.id = id;
        this.picture_name = picture;
        this.x_title = x_title;
        this.x_name = x_name;
        this.x_coutn = x_coutn;

    }


    public void setId(int id) {
        this.id = id;
    }

    public void setPicture_name(String picture) {
        this.picture_name = picture;
    }

    public void setX_title(String x_title) {
        this.x_title = x_title;
    }

    public void setX_name(String x_name) {
        this.x_name = x_name;
    }

    public void setX_coutn(int x_coutn) {
        this.x_coutn = x_coutn;
    }

    public String getPicture_name() {
        return picture_name;
    }

    public String getX_title() {
        return x_title;
    }

    public String getX_name() {
        return x_name;
    }

    public int getX_coutn() {
        return x_coutn;
    }

    public int getId() {
        return id;
    }

    public String getDesc() {
        return desc;
    }
    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Bitmap getBitmap() {
        return bitmap;
    }

    public void setBitmap(Bitmap bitmap) {
        this.bitmap = bitmap;
    }
}
